<template>
  <div>
    <button v-on:click="fn1(12)">按钮</button>
    <button v-on:click="num++">按钮+</button>
    <button @click="num+=3000">发工资啦,我的工资是3000</button>
        <button @click="num-=2800">给喜欢的女主播刷了火箭-2800</button>
        <button @click="num+=10000">送外卖赚了10000</button>
        <button @click="num-=18000">给暗恋的女生买了爱马仕-18000</button>
        <button @click="num+=8000">晚上去做代驾赚了8000</button>
        <button @click="num-=100">买泡面100</button>
        <button @click="num-=50">买挂逼水50</button>
    <p>{{num}}</p>
  </div>
</template>

<script>
export default {
  data(){
    return {
      num:0
    }
  },
  methods:{
    fn1(num){
      console.log(num);
    }
  }
}
</script>

<style>

</style>
